/*
JavaScript语法练习
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide
*/

function greetMe(user) {
    alert('Hi ' + user);
}

greetMe('Alice');

// 浏览器发送POST请求
fetch(Request('url', {
    method:'POST',
    headers:{'Content-Type': 'application/x-www-form-urlencoded'},
    body:'param1=value1&param2=value2'
})).then((resp)=>{console.log(resp)})

